/*
 * VendorItem.java
 *
 * Created on March 29, 2007, 9:02 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

/**
 *
 * @author BrianB
 */
public class VendorItem extends BusinessObject{
    private String viguid;
    private boolean dirty = false;
    private boolean alreadyInDB = false;
    private double cost;
    private Vendor vendor;
    private Conceptual conceptual;
    /** Creates a new instance of VendorItem */
    public VendorItem(String id) {
        this.id = id;
    }
    
    public String getViguid() {
        return viguid;
    }

    public boolean isDirty() {
        return dirty;
    }

    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }

    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }

    public Vendor getVendor() {
        return vendor;
    }

    public void setVendor(Vendor vendor) {
        this.vendor = vendor;
        this.setDirty(true);
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public void setViguid(String viguid) {
        this.viguid = viguid;
    }

    public Conceptual getConceptual() {
        return conceptual;
    }

    public void setConceptual(Conceptual conceptual) {
        this.conceptual = conceptual;
        this.setDirty(true);
    }
    
}